﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Script.Serialization;

public partial class JSSerializer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string sqlStr = "select * from users";
            DataSet ds = new GXDXGY.App_Code.DBHelper().GetDataSet(sqlStr);
            string resStr = GXDXGY.App_Code.JsonHelp.ToJson(ds.Tables[0]);
            Response.Write(resStr);
        }
    }
}
